package com.company.woye.main;

import android.content.Intent;
import android.view.View;

import com.company.woye.Inventory.activity.InventoryActivity;
import com.company.woye.R;
import com.company.woye.base.BaseActivity;
import com.company.woye.boxmanagerdetail.activity.BoxManagerDetailActivity;
import com.company.woye.console.activity.CheckoutConsoleActivity;
import com.company.woye.dbhmanagerdetail.activity.DbhDetailActivity;
import com.company.woye.exception.activity.ExceptionHandleActivity;
import com.company.woye.hotmove.HotMoveActivity;
import com.company.woye.lcl.activity.LCLActivity;
import com.company.woye.monitor.MonitorActivity;
import com.company.woye.onpackage.activity.OnPackageActivity;
import com.company.woye.outhouse.OutHouseActivity;
import com.company.woye.setting.SettingActivity;
import com.company.woye.songbuState.SongbuStateActivity;

import butterknife.OnClick;

public class MainActivity extends BaseActivity {


    @Override
    public int setLayoutId() {
        return R.layout.activity_main;
    }

    @Override
    public void initView() {
    }

    @OnClick({R.id.tv_main_box_detail, R.id.tv_main_dbh_detail, R.id.tv_main_checkout_console, R.id.tv_main_lcl, R.id.tv_main_inventory_information_inquiry,
            R.id.tv_main_exception_handling, R.id.tv_main_on_package, R.id.tv_main_out_house, R.id.iv_main_account})
    public void onViewClick(View view) {
        switch (view.getId()) {
            //检验台
            case R.id.tv_main_checkout_console:
                startActivity(new Intent(this, CheckoutConsoleActivity.class));
                break;
            //拼箱
            case R.id.tv_main_lcl:
                startActivity(new Intent(this, LCLActivity.class));
                break;
            //库存信息查询
            case R.id.tv_main_inventory_information_inquiry:
                startActivity(new Intent(this, InventoryActivity.class));
                break;
            //异常处理
            //松布状态
            case R.id.tv_main_exception_handling:
              //  startActivity(new Intent(this, ExceptionHandleActivity.class));
                startActivity(new Intent(this, SongbuStateActivity.class));
                break;
            //对包
            case R.id.tv_main_on_package:
                startActivity(new Intent(this, OnPackageActivity.class));
                break;
            //箱操作明细  修改成吊挂状态监控
            //
            case R.id.tv_main_box_detail:
//                startActivity(new Intent(this, BoxManagerDetailActivity.class));
                startActivity(new Intent(this, MonitorActivity.class));
                break;
            //单编号操作明细
            case R.id.tv_main_dbh_detail:
                startActivity(new Intent(this, DbhDetailActivity.class));
                break;
            //吊挂分包出库  修改成热转印
            case R.id.tv_main_out_house:
                //startActivity(new Intent(this, OutHouseActivity.class));
                startActivity(new Intent(this, HotMoveActivity.class));
                break;
            case R.id.iv_main_account:
                startActivity(new Intent(this, SettingActivity.class));
                break;
        }
    }
}
